﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Search.aspx.cs" Inherits="Search" %>

<%@ Register Src="usercontrols/UniqueProduct.ascx" TagName="UniqueProduct" TagPrefix="uc1" %>
<%@ Register Src="usercontrols/NewsInDay.ascx" TagName="NewsInDay" TagPrefix="uc2" %>
<%@ Register Src="usercontrols/Servey.ascx" TagName="Servey" TagPrefix="uc3" %>
<%@ Register src="usercontrols/Search.ascx" tagname="Search" tagprefix="uc4" %>
<%@ Register src="usercontrols/SiteAds.ascx" tagname="SiteAds" tagprefix="uc5" %>

<asp:Content ID="Content1" ContentPlaceHolderID="headMeta" runat="Server">
<asp:Literal ID='lblMeta' runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
<title><asp:Literal ID='lblPageTitle' runat="server" /></title>
<script>var cpage = 1; var pageCount = 0;</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div class='page_body page_width'>
    <div class="TimKiemSlideSiteAds">
        <uc4:Search ID="Search1" runat="server" />
        <div class="SlideShowBlock">
            <div id="wrapper">
                <a href="http://dev7studios.com" id="dev7link" style="display: none;" title="">
                    </a>
                <div class="slider-wrapper theme-default">
                    <div class="ribbon">
                    </div>
                    <div id="sliderlist" class="nivoSlider">
                    </div>
                </div>
            </div>
            <script>

                $(document).ready(function () {
                    createSlideShow(2, '#sliderlist', '');
                    $('#lblPriceLessThan50').click(function () {
                        $('#listItem').html('<img src="imgs/loading.gif" /> Loading...');
                        fromPrice = 0; toPrice = 50000;
                        loadAllPage(cCategoryID);
                        setFilterOptionActive('#lblPriceLessThan50');
                    });
                    $('#lblPriceF50To200').click(function () {
                        $('#listItem').html('<img src="imgs/loading.gif" /> Loading...');
                        fromPrice = 50000; toPrice = 200000;
                        loadAllPage(cCategoryID);
                        setFilterOptionActive('#lblPriceF50To200');
                    });
                    $('#lblPriceF200To500').click(function () {
                        $('#listItem').html('<img src="imgs/loading.gif" /> Loading...');
                        fromPrice = 200000; toPrice = 500000;
                        loadAllPage(cCategoryID);
                        setFilterOptionActive('#lblPriceF200To500');
                    });
                    $('#lblPriceGreaterThan500').click(function () {
                        $('#listItem').html('<img src="imgs/loading.gif" /> Loading...');
                        fromPrice = 500000; toPrice = 100000000;
                        loadAllPage(cCategoryID);
                        setFilterOptionActive('#lblPriceGreaterThan500');
                    });
                    $('#lblPriceAll').click(function () {
                        $('#listItem').html('<img src="imgs/loading.gif" /> Loading...');
                        fromPrice = 0; toPrice = 100000000;
                        loadAllPage(cCategoryID);
                        setFilterOptionActive('#lblPriceAll');
                    });
                });
            </script>
        </div>
        <uc5:SiteAds ID="SiteAds1" runat="server" />
    </div>
    <div id="bodyHolder" class="DanhMucSanPhamList">
        <div id="CategoryMenu" class="LeftCatogory">
            <div class="DanhMucSanPhamHeader">
                <a id='productcategory'></a>
            </div>
            <div id="leftPanel">
            </div>
            <uc1:UniqueProduct ID="UniqueProduct1" runat="server" />
            <uc2:NewsInDay ID="NewsInDay1" runat="server" />
            <uc3:Servey ID="Servey1" runat="server" />
        </div>
        <div class="KhuyenMaiHangMoiVe">
            <h1>
                <div class='FilterByPrice'>
                    <div id="lblFilterByPrice" ></div>
                    <div class='FilterOption'>
                        <a id='lblPriceLessThan50'></a>
                        <a id='lblPriceF50To200'></a>
                        <a id='lblPriceF200To500'></a>
                        <a id='lblPriceGreaterThan500'></a>
                        <a id='lblPriceAll' class='active'></a>
                    </div>
                </div>
                    
                    
                <asp:Literal ID='lblCateName' Text="category name binding" runat="server" />
                    
            </h1>
            <div style="display: block; margin-left: 5px;">
                <div class="clear" id="listItem">
                    <img src="imgs/loading.gif" /> Loading...
                </div>
                <asp:Literal id='ltrInitScript' runat="server" />

                <div class="pagerControl">
                        <span id='lblPagging'></span>
                        <input class="gotoPage validateNum" id='txtGoToPage' type="text" maxlength="0" />
                </div>
                <div class="pagging">
                    <a href=" javascript: $('html, body').animate({ scrollTop: $('#Page' + cpage).offset().top }, 500);loadPage(cpage,cCategoryID);loadPage(cpage,cCategoryID);loadPage(cpage,cCategoryID);loadPage(cpage,cCategoryID);" class="btnLoadMore" id='btnMorePage' >Xem thêm khuyến mãi</a>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
</asp:Content>

